
export default {
    namespaced: true,
    state: () => ({
        avatar: localStorage.getItem('avatar') || ''
    }),
    mutations: {
        updateAvatar(state, newAvatar) {
            state.avatar = newAvatar
        }
    },
    actions: {
        changeAvatar({ commit }, newAvatar) {
            commit('updateAvatar', newAvatar)
        }

    }
}
